<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>

<style type="text/css">
.td {
	width: 10%;
	overflow: hidden;
	height: 15%;
	text-align: center
}

.form-control {
	position: abslute;
	top: 20%;
	right: 20%;
	float: right"
}

.input-text {
	width: 100%;
	height: 100%
}

.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div style='width: 100%; height: 300px;overflow-x: auto;'>
		<section class="panel panel-default"> 
		<input type="text" readonly="readonly" name="standardId_1" value="${purchaseRequest.flow}">
		<table border="1" style="margin: 0 auto;">
			<tr class="tr ">
				<td class="td">申请部门</td>
				<td class="td">
					<input type="text" style="width:70px" readonly="readonly" name="standardId_1" value="${purchaseRequest.departmentId}">
				</td>
				<td class="td">采购单号</td>
				<td class="td"><input type="text" class="input-text" readonly="readonly"
					name="buyId" value="${purchaseRequest.buyId}"></td>
				<td class="td">日期</td>
				<td class="td"><input type="text" readonly="readonly" style="width:80px" value="${purchaseRequest.fillingDate}"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
			</tr>
			<tr>
				<td class="td">序号</td>
				<td class="td">供应商</td>
				<td class="td">物料编码</td>
				<td class="td">名称</td>
				<td class="td">规格型号</td>
				<td class="td">单位</td>
				<td class="td">数量</td>
				<td class="td">单价</td>
				<td class="td">总价(元)</td>
				<td class="td">零配件现有库存量</td>
				<td class="td" colspan="2">备注</td>
			</tr>
			<tr>
			<tbody id="tbl">
				<c:forEach var="h" items="${metalsBom }">
					<tr>
						<td><input type="text" class="form-control"
							readonly="readonly" name="standardId_1" value="${h.id}">
						</td>
						<td><input type="text" class="form-control" 
							readonly="readonly" value="${h.supplierId}"></td>
						<td><input type="text" class="form-control" 
							readonly="readonly" value="${h.materialCode}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" value="${h.name}"></td>
						<td><input type="text" class="form-control" name="handle_1"
							readonly="readonly" value="${h.specifications}"></td>
						<td><input type="text" class="form-control" id="handleTime"
							readonly="readonly" name="handleTime_1" value="${h.unit }"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="repairPeopleId_1" value="${h.number}"></td>
						<td><input type="text" class="form-control"
							readonly="readonly" name="repairResult_1" value="${h.price}"></td>
						<td><input type="text" class="form-control" name="remark_1"
							readonly="readonly" value="${h.total}"></td>
						<td><input type="text" class="form-control" name="remark_1"
							readonly="readonly" value="${h.inventoryTotal}"></td>
						<td colspan="2"><input type="text" class="form-control"
							name="remark_1" readonly="readonly" value="${h.comment}"></td>
					</tr>
				</c:forEach>
			</tbody>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">申请人</td>
				<td class="td">仓管员</td>
				<td class="td">采购员</td>
				<td class="td">设备主管</td>
				<td class="td">生产副总</td>
				<td class="td">财务部</td>
				<td class="td">总经理</td>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td">&nbsp;</td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">
					<input type="text" class="form-control"
					readonly="readonly" name="remark_1" value="${purchaseRequest.userName}">
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==27}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==15}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>							
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==25}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==17}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==12}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==16}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.userName}" >
						</c:if>
					</c:forEach>
				</td>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">日期</td>
				<td class="td">日期</td>
				<td class="td">日期</td>
				<td class="td">日期</td>
				<td class="td">日期</td>
				<td class="td">日期</td>
				<td class="td">日期</td>
			</tr>
			<tr>
				<td class="td"></td>
				<td class="td">&nbsp;</td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td"></td>
				<td class="td">
					<input type="text" readonly="readonly" class="form-control"
					name="remark_1" value="${purchaseRequest.fillingDate}"></td>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==27}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==15}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==25}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==17}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==12}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
				<td class="td">
					<c:forEach var="u" items="${userFormMaps }">
						<c:if test="${u.position_id==16}">
							<input type="text" readonly="readonly" class="form-control" name="remark_1" value="${u.auditTime}" >
						</c:if>
					</c:forEach>
				</td>
			</tr>
		</table>
		</section>
	</div>
</body>
</html>